﻿using System;
using System.Data;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

/// <summary>
/// Summary description for MessengeBox
/// </summary>
public static class MessengeBox
{
    public static void Show(Control page, object msg)
    {
        ScriptManager.RegisterStartupScript(page, page.GetType(), "Msg", "alert('" + msg.ToString() + "');", true);
    }
    public static void Show(Control page, object msg, Exception err)
    {
        ScriptManager.RegisterStartupScript(page, page.GetType(), "Msg", "alert('" + msg.ToString() + "');", true);
    }
}
